//
//  PS_SquareDetailVedioCell.m
//  FinanceSupermarket
//
//  Created by 丹丹 on 2018/12/19.
//  Copyright © 2018年 xuezi. All rights reserved.
//

#import "PS_SquareDetailVedioCell.h"

@implementation PS_SquareDetailVedioCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setDataForCell:(PS_ArticleDetailModel *)model{
    
    _videoImage.clipsToBounds = YES;
    _videoImage.layer.cornerRadius = 10;
    [_videoImage sd_setImageWithURL:[NSURL URLWithString:model.video_img]];
    _titleLabel.text = model.title;
    [_headImage sd_setImageWithURL:[NSURL URLWithString:model.avatars]];
    _nameLabel.text = model.nickname;
    _timeLabel.text = model.update_time;
    
    NSAttributedString * htmlStr = [[NSAttributedString alloc] initWithData:[model.content dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
    _contentLabel.attributedText = htmlStr;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
